public class Demo6 {
    //内部匿名类
    public static void main(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                System.out.println("hello thread");
            }
        };
        thread.start();
    }
}
